package com.linx.commonlib.util

import android.content.Context
import android.content.SharedPreferences

private val defaultSP by lazy {
    SP("default")
}

class SP(private val name: String) : SharedPreferences by Utils.app.getSharedPreferences(name, Context.MODE_PRIVATE) {

    companion object : SharedPreferences by defaultSP {

        fun name(name: String): SP {
            return SP(name)
        }

    }

}